package projects.jnurse.ioc.core;

import org.objectweb.asm.ClassAdapter;
import org.objectweb.asm.ClassVisitor;
import org.objectweb.asm.FieldVisitor;

/**
 * Created by Adil Naji.
 * User: XP-170708
 * Date: 16 nov. 2008
 * Time: 17:40:27
 */
public class IocFieldAdapter extends ClassAdapter {

    public IocFieldAdapter(ClassVisitor cv) {
        super(cv);
    }

    @Override
    public FieldVisitor visitField(int i, String s, String s1, String s2, Object o) {
        //return super.visitField(i, s, s1, s2, o);    //To change body of overridden methods use File | Settings | File Templates.
        AnnotationScanner.instance().currentObjectValue = o;
        return new IocFieldVisitor();
    }
}
